package com.wx.mp.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FilterRegistrationConfig {
	/**
	 * 添加响应请求头Filter
	 */
	@Bean
    public FilterRegistrationBean ResponseHeaderFilterRegistration() {
        FilterRegistrationBean registration = new FilterRegistrationBean(new ResponseHeaderFilter());
		registration.addServletRegistrationBeans();
        registration.addUrlPatterns("/*");
        return registration;
    }
}
